package org.liukai.ems.service;

import javax.annotation.Resource;

import org.liukai.ems.dao.UserDao;
import org.liukai.ems.entity.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @create UserService.java 9:35
 * 
 * @author liukai
 * @date 2015/12/18
 */
@Service
public class UserService {
	//注入  该注解和@Resource一样
    @Autowired
    private UserDao userDao;

    public User queryUserByUserName(String username) {
        return userDao.queryUserByUserName(username);
    }
}
